package model

import (
	"fmt"
	"github.com/chicken-team-outside/chicken_transmission/proxy_server/setting"
)

func Init() error {
	err := setting.Db.AutoMigrate(&OrderInfo{}, &TransportInfo{}, &User{})
	if err != nil {
		return fmt.Errorf("failed to migrate models: %w", err)
	}
	return nil
}
